package MawsonClient.GUI;

import javax.swing.*;
import java.awt.*;

/**
 * User: Ryan Green
 * Date: 12/1/11
 * Time: 8:58 PM
 * Copyright - University of South Australia
 */
public class PerFilePanel extends JPanel {
	MawsonFrame frame;

	PerFilePanel(MawsonFrame frame){
		super();

		this.frame = frame;

		JPanel perFilePanel = new JPanel(new GridLayout(0, 2, 5, 5));
		perFilePanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Per File Data"));
		for (RequestedDataElement element : frame.perFileElements) {
			perFilePanel.add(new JLabel(element.label));
			perFilePanel.add(element.comp);
		}
	}
}
